﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Axial.DOM
{
	[JSProxy(typeof(XmlHttpRequest))]
	public class XmlHttpRequestProxy
	{
		public override string ToString()
		{
			return "new XMLHttpRequest() || new ActiveXObject('Microsoft.XMLHTTP')";
		}
	}

	public class XmlHttpRequest
	{
		public void Abort() { }
		public void Open(string method, string url) { }
		public void Open(string method, string url, bool async) { }
		public void Open(string method, string url, bool async, string username, string password) { }
		public void Send() { }
		public void Send(string content) { }
		public void SetRequestHeader(string key, string value) { }

		public Delegate OnReadyStateChange { get; set; }
		public int ReadyState { get; set; }
		public string ResponseText { get; set; }
		public object ResponseXML { get; set; }
		public int Status { get; set; }
		public string StatusText { get; set; }
	}
}
